package com.zx.viewlearn;

import android.app.Activity;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;

import com.zx.viewlearn.activity.DrawableLearnActivity1;
import com.zx.viewlearn.activity.LottieLearnActivity;
import com.zx.viewlearn.activity.ViewLearnActivity10Group;
import com.zx.viewlearn.activity.ViewLearnActivity11OnTouchEvent;
import com.zx.viewlearn.activity.ViewLearnActivity12ViewDragHelper;
import com.zx.viewlearn.activity.ViewLearnActivity13Clock;
import com.zx.viewlearn.activity.ViewLearnActivity14SurfaceView;
import com.zx.viewlearn.activity.ViewLearnActivity15SurfaceView;
import com.zx.viewlearn.activity.ViewLearnActivity16Vector;
import com.zx.viewlearn.activity.ViewLearnActivity17VectorSun;
import com.zx.viewlearn.activity.ViewLearnActivity18Layout;
import com.zx.viewlearn.activity.ViewLearnActivity19PullToRefresh;
import com.zx.viewlearn.activity.ViewLearnActivity1Move;
import com.zx.viewlearn.activity.ViewLearnActivity20Nasted;
import com.zx.viewlearn.activity.ViewLearnActivity21Loading;
import com.zx.viewlearn.activity.ViewLearnActivity2Animator;
import com.zx.viewlearn.activity.ViewLearnActivity3Scroller;
import com.zx.viewlearn.activity.ViewLearnActivity4XML;
import com.zx.viewlearn.activity.ViewLearnActivity5Animator;
import com.zx.viewlearn.activity.ViewLearnActivity5OnMeasure;
import com.zx.viewlearn.activity.ViewLearnActivity6Sun;
import com.zx.viewlearn.activity.ViewLearnActivity7TextView;
import com.zx.viewlearn.activity.ViewLearnActivity8TopBar;
import com.zx.viewlearn.activity.ViewLearnActivity9NewView;
import com.zx.viewlearn.activity.WindowLearnActivity1;

public class MainActivity extends AppCompatActivity {
    public MainActivity() {

        Log.e("MainActivity", "MainActivity()");
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e("MainActivity", "onCreate()");
        setContentView(R.layout.activity_main);
        Activity mainActivity = new MainActivity();
    }

    public void ViewLearnActivity1(View view) {
        Intent intent = new Intent(this, ViewLearnActivity1Move.class);
        startActivity(intent);
    }

    public void ViewLearnActivity2(View view) {
        Intent intent = new Intent(this, ViewLearnActivity2Animator.class);
        startActivity(intent);
    }

    public void ViewLearnActivity3(View view) {
        Intent intent = new Intent(this, ViewLearnActivity3Scroller.class);
        startActivity(intent);
    }

    public void ViewLearnActivity4XML(View view) {
        Intent intent = new Intent(this, ViewLearnActivity4XML.class);
        startActivity(intent);
    }

    public void ViewLearnActivity5Animator(View view) {
        Intent intent = new Intent(this, ViewLearnActivity5Animator.class);
        startActivity(intent);
    }

    public void ViewLearnActivity5OnMeasure(View view) {
        Intent intent = new Intent(this, ViewLearnActivity5OnMeasure.class);
        startActivity(intent);
    }

    public void ViewLearnActivity6Sun(View view) {
        Intent intent = new Intent(this, ViewLearnActivity6Sun.class);
        startActivity(intent);
    }


    public void ViewLearnActivity7TextView(View view) {
        Intent intent = new Intent(this, ViewLearnActivity7TextView.class);
        startActivity(intent);
    }

    public void ViewLearnActivity8TopBar(View view) {
        Intent intent = new Intent(this, ViewLearnActivity8TopBar.class);
        startActivity(intent);
    }


    public void ViewLearnActivity9NewView(View view) {
        Intent intent = new Intent(this, ViewLearnActivity9NewView.class);
        startActivity(intent);
    }

    public void ViewLearnActivity10Group(View view) {
        Intent intent = new Intent(this, ViewLearnActivity10Group.class);
        startActivity(intent);
    }

    public void ViewLearnActivity11OnTouchEvent(View view) {
        Intent intent = new Intent(this, ViewLearnActivity11OnTouchEvent.class);
        startActivity(intent);
    }

    public void ViewLearnActivity12ViewDragHelper(View view) {
        Intent intent = new Intent(this, ViewLearnActivity12ViewDragHelper.class);
        startActivity(intent);
    }

    public void ViewLearnActivity13Clock(View view) {
        Intent intent = new Intent(this, ViewLearnActivity13Clock.class);
        startActivity(intent);
    }

    public void ViewLearnActivity14SurfaceView(View view) {
        Intent intent = new Intent(this, ViewLearnActivity14SurfaceView.class);
        startActivity(intent);
    }

    public void ViewLearnActivity15SurfaceView(View view) {
        Intent intent = new Intent(this, ViewLearnActivity15SurfaceView.class);
        startActivity(intent);
    }


    public void ViewLearnActivity16Vector(View view) {
        Intent intent = new Intent(this, ViewLearnActivity16Vector.class);
        startActivity(intent);
    }

    public void ViewLearnActivity16VectorSun(View view) {
        Intent intent = new Intent(this, ViewLearnActivity17VectorSun.class);
        startActivity(intent);
    }

    public void DrawableLearnActivity1(View view) {
        Intent intent = new Intent(this, DrawableLearnActivity1.class);
        startActivity(intent);
    }

    public void WindowLearnActivity1(View view) {
        Intent intent = new Intent(this, WindowLearnActivity1.class);
        startActivity(intent);
    }

    public void LottieLearnActivity(View view) {
        Intent intent = new Intent(this, LottieLearnActivity.class);
        startActivity(intent);
    }

    public void ViewLearnActivity18Layout(View view) {
        Intent intent = new Intent(this, ViewLearnActivity18Layout.class);
        startActivity(intent);
    }

    public void ViewLearnActivity19PullToRefresh(View view) {
        Intent intent = new Intent(this, ViewLearnActivity19PullToRefresh.class);
        startActivity(intent);
    }

    public void ViewLearnActivity20Nasted(View view) {
        Intent intent = new Intent(this, ViewLearnActivity20Nasted.class);
        startActivity(intent);
    }

    public void ViewLearnActivity21Loading(View view) {
        Intent intent = new Intent(this, ViewLearnActivity21Loading.class);
        startActivity(intent);
    }


}
